export function initUtils(vm) {
  return {
    handlePointList() {
      vm.showpopCom = !vm.showpopCom;
    },
    closePop() {
      vm.showpopCom = false;
    },
    onmsgClose() {
      console.log("确认框已关闭");
    },
    giveCheckedlayers(value) {
      vm.checkedlayers = [...value];
    },
    giveCheckedlayers2(value) {
      vm.checkedmodels = [...value];
    },
    resetView() {
      vm.canvasInitializeView();
    },
  }
}
